# -*- coding: utf-8 -*-

'''
Created on 18.07.2011

@author: Vlasov A. I. <root@proscript.ru>
'''

from django.contrib.auth.decorators import login_required

from util.template import render_by_request_context

from models import VyplataBase, ExchangeLog
from django.http import Http404

@login_required
def main(request):
    
    return Http404
    
    bases = VyplataBase.objects.filter(users=request.user)
    incoming = ExchangeLog.objects.filter(user=request.user).filter(direction='inc')
    
    return render_by_request_context(request, 'vyplata/main.html', {'bases' : bases, 'incoming' : incoming })